import Layout from '#/layout'

export let routes = [
    {
        path: '/',
        component: Layout,
        redirect: '/home',
        children: [
            {
                path: '/home',
                component: () => import('@/views/home/index'),
                name: 'home',
                meta: { title: '首页', icon: 'dashboard' }
            },
            {
                path: '/merchantManagement',
                component: () => import('@/views/merchantManagement/index'),
                name: 'merchantManagement',
                id: '/merchantManagement',
                meta: { title: '商户列表', icon: 'icon-sys' },
            },
            // 新增商户
            {
                path: '/merchantManagement/addMerchant',
                component: () => import('@/views/merchantManagement/addmMerchant'),
                name: 'addMerchant',
                id: '/addMerchant',
                hidden: true,
                meta: { title: '商户列表', icon: 'icon-sys' },
            },
            // 商户详情
            {
                path: '/merchantManagement/merchantDetail',
                component: () => import('@/views/merchantManagement/merchantDetail'),
                name: 'merchantDetail',
                id: '/merchantDetail',
                hidden: true,
                meta: {
                    title: '商户列表',
                    icon: 'icon-sys',
                },
            },
            // 商户流水
            {
                path: '/merchantManagement/merchantRecords',
                component: () => import('@/views/merchantManagement/merchantRecords'),
                name: 'merchantRecords',
                id: '/merchantRecords',
                hidden: true,
                meta: {
                    title: '商户列表',
                    icon: 'icon-sys',
                },
            },
            {
                path: '/transactionRecord',
                component: () => import('@/views/transactionRecord/index'),
                name: 'transactionRecord',
                id: '/transactionRecord',
                meta: { title: '交易流水', icon: 'icon-sys' },
            },
            {
                path: '/distributionDetails',
                component: () => import('@/views/distributionDetails/index'),
                name: 'distributionDetails',
                id: '/distributionDetails',
                meta: { title: '分润明细', icon: 'icon-sys' },
            },
            // {
            //     path: '/withdrawalHistory',
            //     component: () => import('@/views/withdrawalHistory/index'),
            //     name: 'withdrawalHistory',
            //     id: '/withdrawalHistory',
            //     meta: { title: '提现记录', icon: 'icon-sys' },
            // },
            {
                path: '/platRuleSettings',
                component: () => import('@/views/platRuleSettings/index'),
                name: 'platRuleSettings',
                id: '/platRuleSettings',
                meta: { title: '平台规则设置', icon: 'icon-sys' },
            },
            {
                path: '/couponManagement',
                component: () => import('@/views/couponManagement/index'),
                name: 'couponManagement',
                id: '/couponManagement',
                meta: { title: '优惠券管理', icon: 'icon-sys' },
            },
            {
                path: '/memberList',
                component: () => import('@/views/memberList/index'),
                name: 'memberList',
                id: '/memberList',
                meta: { title: '会员列表', icon: 'icon-sys' },
            },
            {
                path: '/carouselManagement',
                component: () => import('@/views/carouselManagement/index'),
                name: 'carouselManagement',
                id: '/carouselManagement',
                meta: { title: '轮播管理', icon: 'icon-sys' },
            },
            {
                path: '/carouselManagement/addCarousel',
                component: () => import('@/views/carouselManagement/addCarousel'),
                name: 'addCarousel',
                id: '/addCarousel',
                hidden: true,
                meta: { title: '轮播管理', icon: 'icon-sys' },
            },
        ]
    },

    // {
    //     path: '/sysManage',
    //     component: View,
    //     name: 'sysManage',
    //     redirect: '/sysManage/userManage',
    //     id: '/sysManage',
    //     meta: {
    //         title: '系统管理',
    //         icon: 'icon-sys'
    //     },
    //     children: [
    //         {
    //             path: 'roleManage',
    //             component: () => import('@/views/authorization/roleManage'),
    //             name: 'roleManage',
    //             id: '/roleManage',
    //             meta: {
    //                 title: '角色管理',
    //             }
    //         },
    //         {
    //             path: 'userManage',
    //             component: () => import('@/views/authorization/userManage'),
    //             name: 'userManage',
    //             id: '/userManage',
    //             meta: {
    //                 title: '用户管理',
    //             }
    //         },
    //         {
    //             path: 'sysLog',
    //             component: () => import('#/views/sysLog/optLog.vue'),
    //             name: 'sysLog',
    //             id: '/sysLog',
    //             meta: {
    //                 title: '系统日志',
    //             }
    //         },
    //     ]
    // },
]

export default routes;